home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
DELPHI32
/
BUTTONS
/
XTOOLBTN
/
XTOOLBTN.INT
< prev
next >
Wrap
Text File
|
1996-05-26
|
3KB
|
83 lines
{*******************************************************}
{ }
{ xTool - Component Collection }
{ }
{ Copyright (c) 1995 Stefan B÷ther }
{ }
{*******************************************************}
unit xToolBtn;
{ 27.03.96 Added auto-created menuitems and other stuff Stefc }
interface
uses
WinTypes, SysUtils, WinProcs, Messages, Classes, Controls, Forms,
StdCtrls, ExtCtrls, Buttons, Menus, Graphics;
type
TButtonBmp = 0..90;
const
bbNone = TButtonBmp(0);
bbExit = TButtonBmp(1);
bbNew = TButtonBmp(2);
bbOpen = TButtonBmp(3);
bbSave = TButtonBmp(4);
bbPrint = TButtonBmp(5);
bbPreview = TButtonBmp(6);
bbSearch = TButtonBmp(7);
bbCut = TButtonBmp(8);
bbCopy = TButtonBmp(9);
bbPaste = TButtonBmp(10);
bbUndo = TButtonBmp(11);
bbDateTime = TButtonBmp(12);
bbPen = TButtonBmp(13);
bbInput1 = TButtonBmp(14);
bbInput2 = TButtonBmp(15);
bbMarker = TButtonBmp(16);
bbUnknown1 = TButtonBmp(17);
bbFont = TButtonBmp(18);
bbBold = TButtonBmp(19);
bbItalic = TButtonBmp(20);
bbUnderline = TButtonBmp(21);
bbFontColor = TButtonBmp(22);
bbLeft = TButtonBmp(23);
bbCenter = TButtonBmp(24);
bbRight = TButtonBmp(25);
bbBullet = TButtonBmp(26);
bbUnknown2 = TButtonBmp(27);
bbUnknown3 = TButtonBmp(28);
bbUnknown4 = TButtonBmp(29);
bbUnknown5 = TButtonBmp(30);
bbPrevTopic = TButtonBmp(31);
bbNextTopic = TButtonBmp(32);
bbUnknown6 = TButtonBmp(33);
bbUnknown7 = TButtonBmp(34);
bbHome = TButtonBmp(35);
bbFree1 = TButtonBmp(36);
bbIcon = TButtonBmp(73);
bbSmallIcon = TButtonBmp(74);
bbList = TButtonBmp(75);
bbReport = TButtonBmp(76);
type
TxToolButton = class(TSpeedButton)
protected
procedure Loaded; override;
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
property Button: TButtonBmp read fButtonBitmap write SetButtonBitmap default bbNone;
Property MenuItem: TMenuItem read FMenuItem write SetMenuItem;
property Spacing: Boolean read FSpacing write FSpacing;
property Glyph: TBitmap read GetGlyph write SetGlyph stored IsGlyphStored;
property Caption: String read FCaption write FCaption;
property ShortCut: TShortCut read FShortCut write FShortCut;
end;
procedure Register;
implementation